import { request } from "./request"

export function login(id,pass) {
    return request({
        method: 'POST',
      url: '/Login',
      params:{
        id,
        pass
    }
    })
  }


  export function all() {
    return request({
        method: 'GET',
      url: '/Selectall',
    })
  }

  export function del(id) {
    return request({
      method: 'POST',
      url: '/Delete',
      params:{
        id        
    }
    })
  }
  export function select(id) {
    return request({
      method: 'POST',
      url: '/Select',
      params:{
        id        
    }
    })
  }
  export function name(id) {
    return request({
      method: 'POST',
      url: '/name',
      params:{
        id        
    }
    })
  }
  export function update(params) {
    return request({
      method: 'POST',
      url: '/Edit',
      params
    })
  }

  export function add(params) {
    return request({
      method: 'POST',
      url: '/Create',
      params
    })
  }